// 引入创建 store 的核心方法
import { createStore, applyMiddleware, combineReducers } from 'redux'
// 引入 count 的 reducer 方法
import countReducer from './reducers/count'
// 引入 person 的 reducer 方法
import personReducer from './reducers/person'
// 引入异步中间件
import thunk from 'redux-thunk'

const allReducers = combineReducers({
  he: countReducer,
  personData: personReducer
})

export default createStore(allReducers, applyMiddleware(thunk))
